package com.ktjiaoyu.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class StorageRecord {
    private Integer id;//主键ID
    private String srCode;//入库记录编码
    private Integer supplierId;//供货商ID
    private String goodsName;//商品名称
    private String goodsDesc;//商品描述
    private String goodsUnit;//商品单位
    private float goodsCount;//入库数量
    private float totalAmount;//入库商品总额
    private Integer payStatus;//支付状态（1：未支付 2：已支付）
    private Integer createdUserId;//创建人id
    private Date createdTime;//创建时间
    private Integer updatedUserId;//修改人id
    private Date updatedTime;//修改时间

    private Supplier supplier;

    public StorageRecord() {
    }

    public StorageRecord(Integer id, String srCode, Integer supplierId, String goodsName, String goodsDesc, String goodsUnit, float goodsCount, float totalAmount, Integer payStatus, Integer createdUserId, Date createdTime, Integer updatedUserId, Date updatedTime) {
        this.id = id;
        this.srCode = srCode;
        this.supplierId = supplierId;
        this.goodsName = goodsName;
        this.goodsDesc = goodsDesc;
        this.goodsUnit = goodsUnit;
        this.goodsCount = goodsCount;
        this.totalAmount = totalAmount;
        this.payStatus = payStatus;
        this.createdUserId = createdUserId;
        this.createdTime = createdTime;
        this.updatedUserId = updatedUserId;
        this.updatedTime = updatedTime;
    }

    public StorageRecord(Integer id, String srCode, Integer supplierId, String goodsName, String goodsDesc, String goodsUnit, float goodsCount, float totalAmount, Integer payStatus, Integer createdUserId, Date createdTime, Integer updatedUserId, Date updatedTime, Supplier supplier) {
        this.id = id;
        this.srCode = srCode;
        this.supplierId = supplierId;
        this.goodsName = goodsName;
        this.goodsDesc = goodsDesc;
        this.goodsUnit = goodsUnit;
        this.goodsCount = goodsCount;
        this.totalAmount = totalAmount;
        this.payStatus = payStatus;
        this.createdUserId = createdUserId;
        this.createdTime = createdTime;
        this.updatedUserId = updatedUserId;
        this.updatedTime = updatedTime;
        this.supplier = supplier;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return srCode
     */
    public String getSrCode() {
        return srCode;
    }

    /**
     * 设置
     * @param srCode
     */
    public void setSrCode(String srCode) {
        this.srCode = srCode;
    }

    /**
     * 获取
     * @return supplierId
     */
    public Integer getSupplierId() {
        return supplierId;
    }

    /**
     * 设置
     * @param supplierId
     */
    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    /**
     * 获取
     * @return goodsName
     */
    public String getGoodsName() {
        return goodsName;
    }

    /**
     * 设置
     * @param goodsName
     */
    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    /**
     * 获取
     * @return goodsDesc
     */
    public String getGoodsDesc() {
        return goodsDesc;
    }

    /**
     * 设置
     * @param goodsDesc
     */
    public void setGoodsDesc(String goodsDesc) {
        this.goodsDesc = goodsDesc;
    }

    /**
     * 获取
     * @return goodsUnit
     */
    public String getGoodsUnit() {
        return goodsUnit;
    }

    /**
     * 设置
     * @param goodsUnit
     */
    public void setGoodsUnit(String goodsUnit) {
        this.goodsUnit = goodsUnit;
    }

    /**
     * 获取
     * @return goodsCount
     */
    public float getGoodsCount() {
        return goodsCount;
    }

    /**
     * 设置
     * @param goodsCount
     */
    public void setGoodsCount(float goodsCount) {
        this.goodsCount = goodsCount;
    }

    /**
     * 获取
     * @return totalAmount
     */
    public float getTotalAmount() {
        return totalAmount;
    }

    /**
     * 设置
     * @param totalAmount
     */
    public void setTotalAmount(float totalAmount) {
        this.totalAmount = totalAmount;
    }

    /**
     * 获取
     * @return payStatus
     */
    public Integer getPayStatus() {
        return payStatus;
    }

    /**
     * 设置
     * @param payStatus
     */
    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }

    /**
     * 获取
     * @return createdUserId
     */
    public Integer getCreatedUserId() {
        return createdUserId;
    }

    /**
     * 设置
     * @param createdUserId
     */
    public void setCreatedUserId(Integer createdUserId) {
        this.createdUserId = createdUserId;
    }

    /**
     * 获取
     * @return createdTime
     */
    public Date getCreatedTime() {
        return createdTime;
    }

    /**
     * 设置
     * @param createdTime
     */
    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    /**
     * 获取
     * @return updatedUserId
     */
    public Integer getUpdatedUserId() {
        return updatedUserId;
    }

    /**
     * 设置
     * @param updatedUserId
     */
    public void setUpdatedUserId(Integer updatedUserId) {
        this.updatedUserId = updatedUserId;
    }

    /**
     * 获取
     * @return updatedTime
     */
    public Date getUpdatedTime() {
        return updatedTime;
    }

    /**
     * 设置
     * @param updatedTime
     */
    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    public String toString() {
        return "StorageRecord{id = " + id + ", srCode = " + srCode + ", supplierId = " + supplierId + ", goodsName = " + goodsName + ", goodsDesc = " + goodsDesc + ", goodsUnit = " + goodsUnit + ", goodsCount = " + goodsCount + ", totalAmount = " + totalAmount + ", payStatus = " + payStatus + ", createdUserId = " + createdUserId + ", createdTime = " + createdTime + ", updatedUserId = " + updatedUserId + ", updatedTime = " + updatedTime + "}";
    }

    /**
     * 获取
     * @return supplier
     */
    public Supplier getSupplier() {
        return supplier;
    }

    /**
     * 设置
     * @param supplier
     */
    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }
}
